{
 "cells": [
  {
   "cell_type": "code",
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2025-10-29T16:10:35.208700Z",
     "start_time": "2025-10-29T16:10:35.203917Z"
    }
   },
   "source": [
    "import pandas as pd\n",
    "\n",
    "s = pd.Series([4,7,-5,3])\n",
    "print(s)\n",
    "\n",
    "s2 = pd.Series([4,7,-5,3], index=[\"a\", \"b\", \"c\", \"d\"])\n",
    "print(s2)\n",
    "\n",
    "s3 = pd.Series([4,7,-5,3], index=[\"a\", \"b\", \"c\", \"d\"], name=\"hello_py\")\n",
    "print(s3)\n",
    "\n",
    "dic = {\"a\":4, \"b\":7, \"c\": -5, \"d\": 3}\n",
    "s4 = pd.Series(dic)\n",
    "print(s4)"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0    4\n",
      "1    7\n",
      "2   -5\n",
      "3    3\n",
      "dtype: int64\n",
      "a    4\n",
      "b    7\n",
      "c   -5\n",
      "d    3\n",
      "dtype: int64\n",
      "a    4\n",
      "b    7\n",
      "c   -5\n",
      "d    3\n",
      "Name: hello_py, dtype: int64\n",
      "a    4\n",
      "b    7\n",
      "c   -5\n",
      "d    3\n",
      "dtype: int64\n"
     ]
    }
   ],
   "execution_count": 3
  },
  {
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-10-29T16:11:16.441592Z",
     "start_time": "2025-10-29T16:11:16.437006Z"
    }
   },
   "cell_type": "code",
   "source": [
    "dic = {\"a\":4, \"b\":7, \"c\": -5, \"d\": 3}\n",
    "s4 = pd.Series(dic)\n",
    "print(s4)"
   ],
   "id": "9016873c49309cd7",
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "a    4\n",
      "b    7\n",
      "c   -5\n",
      "d    3\n",
      "dtype: int64\n"
     ]
    }
   ],
   "execution_count": 4
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
